function postedInWall(from, baseUrl) {
    $.ajax({
        type:'GET',
        url: baseUrl + 'common/wallfb.php',
        data: 'from=' + from,
        success: function(data){
            if (data == "") {
                $("#notice").html('<div class="padding20 bg-red">'+data+'</div>');
            } else {
                notice();
            }
        },
        error: function (result) {
            $("#notice").html('<div class="padding20 bg-red">'+data+'</div>');
        }
    });
}

function notice() {
    setTimeout(function(){
            $.Notify({style: {background: 'green', color: 'white'}, content: "Đã đăng lên tường thành công !"});}, 1000);
}

function loadPage(from, id, baseUrl)
{
    var url = '';
    if (from == 'vova') {
        url = baseUrl + 'm/_vova.php';
    } else if (from == 'tuvi') {
        url = baseUrl + 'm/_index.php';
    }

    $("#notice").html('');
    $("#siteloader").html('<div class="subheader" style="text-align:center"><img width="100px" src="'+ baseUrl +'images/loading.gif"> Vui Lòng đợi trong giây lát...</div>');
    $.ajax({
        type:'GET',
        url: url,
        data: 'id=' + id,
        success: function(data){
            $("#siteloader").html(data);
        },
        error: function (result) {
            $("#notice").html('<div class="span8 padding20 bg-red">'+result+'</div>');
        }
    });
}